package org.budo.graph.druid.spring.aop.interceptor;

import java.lang.reflect.Method;

import org.budo.support.lang.util.ReflectUtil;

import com.alibaba.druid.support.spring.stat.SpringMethodInfo;

/**
 * @author limingwei
 * @see com.alibaba.druid.support.spring.stat.SpringMethodInfo
 */
public class BudoGraphSpringMethodInfo extends SpringMethodInfo {
    private String signature;

    private Method method;

    public BudoGraphSpringMethodInfo(Class<?> instanceType, Method method) {
        super(instanceType, method);

        this.method = method;
    }

    /**
     * 覆盖重写了signature生成方式
     */
    @Override
    public String getSignature() {
        if (null == this.signature) {
            this.signature = ReflectUtil.methodToString(this.method);
        }
        return signature;
    }
}